﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Transit_Task.aspx.cs" Inherits="Vehicle.Web.Pages.Transit.Transit_Task" %>
<%@ Register Assembly="GMDatePicker" Namespace="GrayMatterSoft" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>物流管理系统</title>
   <!-- 引用CSS与JS-->
<link href="../../Style/skin.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style1
        {
            width: 132px;
        }
    </style>
</head>
<body>
<form id="form1" runat="server">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
   <td width="17" valign="top" background="../../Images/mail_leftbg.gif"><img src="../../images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="../../Images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">运力查询</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="../../images/mail_rightbg.gif"><img src="../../images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td height="71" valign="middle" background="../../images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="13" valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td class="left_txt">当前位置：运力查询--历史承运查询</td>
          </tr>
          <tr>
            <td height="15"><table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
              <tr>
                <td></td>
              </tr>
            </table></td>
          </tr>
        </table>
          </td>
      </tr>
		 <tr>
          <td height=25>
           <!-- 筛选数据选择项 -->
            <table cellSpacing="0" cellPadding="2" border="0">
              <tbody>
              <tr>
                <td class="left_txt">筛选数据：</td>
                <td class="left_txt3"><asp:RadioButton ID="rbt_C_Card" runat="server" Text="按承运单编号"  GroupName="select" Checked="true" />
                        <asp:TextBox ID="txt_C_Card" runat="server" Width="90px"></asp:TextBox>
                  <asp:RadioButton ID="rbt_C_Contact" runat="server" Text="按客户姓名"  GroupName="select"  />
                     <asp:TextBox ID="txt_C_Contact" runat="server" Width="90px"></asp:TextBox>
                       <asp:RadioButton ID="rbt_C_contract" runat="server" Text="按合同号"  GroupName="select"  />
                     <asp:TextBox ID="txt_C_contract" runat="server" Width="90px"></asp:TextBox>&nbsp;&nbsp;接收情况:
                     <asp:DropDownList ID="drop_C_Receive" runat="server">
                     <asp:ListItem Text="全部" Value="0" Selected="True"></asp:ListItem>
                      <asp:ListItem Text="是" Value="1" ></asp:ListItem>
                       <asp:ListItem Text="否" Value="2" ></asp:ListItem>
                        <asp:ListItem Text="审核" Value="3" ></asp:ListItem>
                     </asp:DropDownList>
                  </td>
                  </tr>
                  <tr>
                  <td>&nbsp;</td>
                  <td class="left_txt3"><asp:RadioButton ID="rbt_C_Time" runat="server" Text="按添加日期"  GroupName="select" Checked="true"  />
                    &nbsp;&nbsp;起始时间:&nbsp;<cc1:GMDatePicker ID="Gmdp_Start" runat="server" CalendarTheme="Blue"
                        Font-Size="12px" NoneButtonText="清空" TodayButtonText="今天" 
                        InitialValueMode="Null"  EnableViewState="False" DisplayMode="Label">
                    </cc1:GMDatePicker>&nbsp;&nbsp;结束时间:&nbsp;
                     <cc1:GMDatePicker ID="Gmdp_End" runat="server" CalendarTheme="Blue"
                        Font-Size="12px" NoneButtonText="清空" TodayButtonText="今天" 
                        InitialValueMode="Null"  EnableViewState="False" DisplayMode="Label">
                    </cc1:GMDatePicker>&nbsp;&nbsp;&nbsp;<asp:Button ID="btn_Select" runat="server" 
                          Text="筛选" onclick="btn_Select_Click" />       
                   </td>
                    </tr></tbody></table></td></tr>
				 <tr>
				 <!-- 定义AJAX控件  -->
          <td><asp:ScriptManager ID="SM_AJAX" runat="server">
                 </asp:ScriptManager>   
				 <asp:UpdatePanel ID="UPanel" runat="server">
				 <ContentTemplate>
				  <!-- 定义Repeater控件用于绑定数据  -->
               <asp:Repeater ID="ReptShow" runat="server" onitemdatabound="ReptShow_ItemDataBound"  >
              <HeaderTemplate>
                <table id="grid" class="Tablt_All"  cellSpacing="1" cellPadding="2" rules="all" border="0">
              <tbody>
                    <tr class="main_tab">  
                <td width="8%">承运单编号</td>
                <td width="8%">货物名称</td>  
                 <td width="8%">货物装车时间</td>
                <td width="8%">客户姓名</td>
                 <td width="8%">客户公司名称</td>
                <td width="8%">客户手机</td>
                  <td width="5%">接收情况</td>
                 <td width="4%">运输情况</td>
                </tr>
              </HeaderTemplate>
              <ItemTemplate>    
            <tr class="TR_All">
                 <td><a href="../Cargo/Cargo_View.aspx?id=<%# Eval("C_Card")%>"><%# Eval("C_Card")%></a></td>
                <td><%# Eval("C_GoodsName")%></td>         
                <td><%# Eval("C_CTime" ,"{0:yyyy-MM-dd}")%></td>
                <td><%# Eval("C_Contact")%></td>
                <td><%# Eval("C_CName")%></td>
                <td><%# Eval("C_Mobilephone")%></td>
                 <td><asp:Label ID="lab_C_Receive" runat="server" Text='<%# Eval("C_Receive")%>'></asp:Label></td>
                <td><asp:Label ID="lab_C_Result" runat="server" Text='<%# Eval("C_Result")%>'></asp:Label></td>
                </tr>
              </ItemTemplate>          
              <FooterTemplate>
               </tbody></table>
              </FooterTemplate>
              </asp:Repeater>  
          <font style="text-align:center; color:Red;"><%= onshow %></font> 
               <!-- 注册外部控件调用AJAX控件  -->
              </ContentTemplate> 
               <Triggers>
               <asp:AsyncPostBackTrigger ControlID="btn_Select" />
               </Triggers>
   </asp:UpdatePanel> </td>              
 <tr>
          <td align=right height=25>
            <img src="../../images/pic10.gif" height="13" />
            <font class="left_txt">
                <asp:Button ID="btn_Excel" runat="server" Text="导出Excel" onclick="btn_Excel_Click" /></font>&nbsp;&nbsp;&nbsp;
             </td></tr>   
			 <tr>
			 <td>
			</td>       
         </tr>
    </table></td>
    <td background="../../images/mail_rightbg.gif">&nbsp;</td>
  </tr> 
     
  <tr>
    <td valign="middle" background="../../images/mail_leftbg.gif"><img src="../../images/buttom_left2.gif" width="17" height="17" /></td>
      <td height="17" valign="top" background="../../images/buttom_bgs.gif"><img src="../../images/buttom_bgs.gif" width="17" height="17" /></td>
    <td background="../../images/mail_rightbg.gif"><img src="../../images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
<asp:UpdateProgress ID="UProgress" runat="server" AssociatedUpdatePanelID="UPanel">
<ProgressTemplate>
<font class="left_txt">数据提交中....</a></font>
</ProgressTemplate>
</asp:UpdateProgress>
</form>
</body>

